package com.lt.test.entity.DTO;

import java.io.Serializable;

/**
 * Created by zhengchuan on 2017/3/14.
 */
public class OrderPayInfoDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    private String payOrderNo; //流水号
    private String merchantCode;//商户编号
    private String merchantName;//商户名称
    private String bankCode; //银行编号
    private String payDateStr;//支付时间
    private Double payAmount;//支付全款
    private String payStatus;//支付状态key
    private String payStatusStr;//支付状态描述
    private String transType;//交易类型
    private String transMethod;//交易方式
    private String bankRetMsg;//银行回执
    private String bankRetDateStr;//回执时间
    private String transDateStr; //交易时间


    public String getPayOrderNo() {
        return payOrderNo;
    }

    public void setPayOrderNo(String payOrderNo) {
        this.payOrderNo = payOrderNo;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public String getBankCode() {
        return bankCode;
    }

    public void setBankCode(String bankCode) {
        this.bankCode = bankCode;
    }

    public String getPayDateStr() {
        return payDateStr;
    }

    public void setPayDateStr(String payDateStr) {
        this.payDateStr = payDateStr;
    }

    public Double getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(Double payAmount) {
        this.payAmount = payAmount;
    }

    public String getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(String payStatus) {
        this.payStatus = payStatus;
        switch (payStatus){
            case "01" :
                this.payStatusStr = "支付成功";
                break;
            case "02" :
                this.payStatusStr = "付款中";
                break;
            case "99" :
                this.payStatusStr = "支付失败";
                break;
            default:
                this.payStatusStr = "未知";
                break;
        }
    }

    public String getPayStatusStr() {
        return payStatusStr;
    }

    public void setPayStatusStr(String payStatusStr) {
        this.payStatusStr = payStatusStr;
    }

    public String getTransType() {
        return transType;
    }

    public void setTransType(String transType) {
        this.transType = transType;
    }

    public String getTransMethod() {
        return transMethod;
    }

    public void setTransMethod(String transMethod) {
        this.transMethod = transMethod;
    }

    public String getBankRetMsg() {
        return bankRetMsg;
    }

    public void setBankRetMsg(String bankRetMsg) {
        this.bankRetMsg = bankRetMsg;
    }

    public String getBankRetDateStr() {
        return bankRetDateStr;
    }

    public void setBankRetDateStr(String bankRetDateStr) {
        this.bankRetDateStr = bankRetDateStr;
    }

    public String getMerchantCode() {
        return merchantCode;
    }

    public void setMerchantCode(String merchantCode) {
        this.merchantCode = merchantCode;
    }

    public String getTransDateStr() {
        return transDateStr;
    }

    public void setTransDateStr(String transDateStr) {
        this.transDateStr = transDateStr;
    }

    @Override
    public String toString() {
        return "OrderPayInfoDTO{" +
                "payOrderNo='" + payOrderNo + '\'' +
                ", merchantCode='" + merchantCode + '\'' +
                ", merchantName='" + merchantName + '\'' +
                ", bankCode='" + bankCode + '\'' +
                ", payDateStr='" + payDateStr + '\'' +
                ", payAmount=" + payAmount +
                ", payStatus='" + payStatus + '\'' +
                ", payStatusStr='" + payStatusStr + '\'' +
                ", transType='" + transType + '\'' +
                ", transMethod='" + transMethod + '\'' +
                ", bankRetMsg='" + bankRetMsg + '\'' +
                ", bankRetDateStr='" + bankRetDateStr + '\'' +
                ", transDateStr='" + transDateStr + '\'' +
                '}';
    }
}
